package com.obas.event
{
	import com.ease.framework.CommandCompletionEvent;
	import com.obas.business.parameterpool.vo.ParameterPoolListObject;
	
	import flash.events.Event;

	[Response(name="{RETURN_ID}", type="com.ease.framework.CommandCompletionEvent")]
	public class ParameterPoolEvent extends Event
	{

		public static const REQUEST_ID:String="ParameterPoolEvent_Request";

		public static const RETURN_ID:String="ParameterPoolEvent_Return";

		public static const TYPE_findByTestcaseScriptId:String="findByTestcaseScriptId";
		
		public static const TYPE_save:String="save";
		
		private var _actionType:String;
		
		private var _parameterPoolListObject:ParameterPoolListObject;
		
		private var _testcaseScriptId:Number;

		public function ParameterPoolEvent(actionType:String=TYPE_findByTestcaseScriptId, type:String=null)
		{

			var typeId:String=type;
			if (type == null)
			{
				typeId=REQUEST_ID;
			}
			super(typeId, true, true);		
			_actionType=actionType;
		}

		public override function clone():Event
		{
			var event:ParameterPoolEvent=new ParameterPoolEvent(actionType, type);
			event.testcaseScriptId=testcaseScriptId;
			event.parameterPoolListObject=parameterPoolListObject;
			return event;
		}
		
		public function get actionType():String
		{
			return _actionType;
		}
		
		public function get parameterPoolListObject():ParameterPoolListObject
		{
			return _parameterPoolListObject;
		}
		
		public function set parameterPoolListObject(value:ParameterPoolListObject):void
		{
			_parameterPoolListObject=value;
		}
		
		public function get testcaseScriptId():Number
		{
			return _testcaseScriptId;
		}
		
		public function set testcaseScriptId(value:Number):void
		{
			_testcaseScriptId=value;
		}
	}
}